package com.mrobuy.jdvc.entity;

import com.gavel.annotation.FieldMeta;
import com.gavel.annotation.TableMeta;

import java.util.ArrayList;
import java.util.List;

@TableMeta(name = "MENU", title = "系统菜单")
public class Menu {


    /**
     * title : 常规管理
     * icon : fa fa-address-book
     * href :
     * target : _self
     */

    @FieldMeta(name = "ID", title = "ID", length = 32, primary = true)
    private String id;

    @FieldMeta(name = "PID", title = "PID", length = 32)
    private String pid;

    @FieldMeta(name = "TITLE", title = "名称", length = 32)
    private String title;

    @FieldMeta(name = "ICON", title = "图标", length = 32)
    private String icon;

    @FieldMeta(name = "HREF", title = "链接", length = 32)
    private String href;

    @FieldMeta(name = "TARGET", title = "目标", length = 32)
    private String target;

    private List<Menu> child = new ArrayList<>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public List<Menu> getChild() {
        return child;
    }

    public void setChild(List<Menu> child) {
        this.child = child;
    }
}
